// (c) 2007 xi8ix. All Rights Reserved.
package org.xi8ix.loader;

import java.util.Date;

/**
 * @author Iain Shigeoka
 * @invariant $none
 */
public interface LoaderMBean {
    String getTitle();
    String getVersion();
    Date getLaunchDate();
    long getUptimeMilliseconds();
    String getUptime();

    void shutdown(long delay);

    class Builder {
        public static void register(Loader loader) {
            MXBeanBuilder.registerSingleton("com.telem2m:type=Loader", loader, LoaderMBean.class);
        }
    }
}
